<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <iframe
      :src="wxImg"
      width="1200"
      height="300"
      frameborder="0"
      scrolling="auto"
      style="position: absolute; top: 150px; left: 200px"
    >
    </iframe>
  </div>
</template>
 
<script>
import QRCode from "qrcodejs2";
export default {
  name: "HelloWorld",
  data() {
    return {
      msg: "微信扫码",
      wxImg: "",
    };
  },
  created() {
    this.axios
        .get("/devApi/wxLogin")
        .then((res) => {
          console.log(res.data);
          this.wxImg = res.data;
        })
        .catch(function (error) {
          console.log(error);
        });
  },
  methods: {
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1,
h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
